package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);

    List<User> findAll();

    List<User> findByUserId(int id);

    void update(User user, int[] roleids);

    void add(User user, int[] roleids);

    void delete(int id);

    PageResult findPage(QueryPageBean queryPageBean);
}
